import { createApp } from "vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import 'element-plus/theme-chalk/dark/css-vars.css';
//引入模板的全局样式
import "@/styles/index.scss";
//svg插件配置代码
import "virtual:svg-icons-register";
//引入全局组件对象
import globalComponent from "@/components/index";
import router from './router';
import pinia from './store';
//路由鉴权
import './permission';

const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
});
//安装自定义全局组件
app.use(globalComponent);
app.use(router);
app.use(pinia);
app.mount("#app");
